import json

data = [
    {
        "name": "张三",
        "age": 18,
        "gender": "男"
    },
    {
        "name": "李四",
        "age": 19,
        "gender": "女"
    },
    {
        "name": "王五",
        "age": 20,
        "gender": "男"
    }
]
# 打印Data类型
print(type(data))

json_data = json.dumps(data, ensure_ascii=False)
print(json_data)
print(type(json_data))